package com.bulletelc.apollopre.module.main.center.address.edit;

import com.bulletelc.apollopre.entity.AddressDetailBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date: 2018/1/24
 * desc: TODO
 */
public interface EditAddressContract {

    interface View extends IView{
        void onSuccessAddAddress();
        void onFailAddAddress(String fail);
        void onErrorAddAddress(String error);

        void onSuccessEditAddress();
        void onFailEditAddress(String fail);
        void onErrorEditAddress(String error);

        void onSuccessAddressDetail(AddressDetailBean addressDetailBean);
        void onFailAddressDetail(String fail);
        void onErrorAddressDetail(String error);


    }

    interface Presenter extends IPresenter<View>{

        void addAddress(String json);

        void editAddress(String json,int addressId);

        void getAddressDetail(int addressId);

        /**
         * 获取全国地区数据
         */
        void getRegionalData();

    }


}
